package com.bestsoft.flow.service;

import java.util.List;
import com.bestsoft.flow.domain.FlowUserSupply;

/**
 * 用户和供应商关联Service接口
 * 
 * @author wj
 * @date 2023-09-04
 */
public interface IFlowUserSupplyService 
{
    /**
     * 查询用户和供应商关联
     * 
     * @param userId 用户和供应商关联主键
     * @return 用户和供应商关联
     */
    public FlowUserSupply selectFlowUserSupplyByUserId(Long userId);

    /**
     * 查询用户和供应商关联列表
     * 
     * @param flowUserSupply 用户和供应商关联
     * @return 用户和供应商关联集合
     */
    public List<FlowUserSupply> selectFlowUserSupplyList(FlowUserSupply flowUserSupply);

    /**
     * 新增用户和供应商关联
     * 
     * @param flowUserSupply 用户和供应商关联
     * @return 结果
     */
    public int insertFlowUserSupply(FlowUserSupply flowUserSupply);

    /**
     * 修改用户和供应商关联
     * 
     * @param flowUserSupply 用户和供应商关联
     * @return 结果
     */
    public int updateFlowUserSupply(FlowUserSupply flowUserSupply);

    /**
     * 批量删除用户和供应商关联
     * 
     * @param userIds 需要删除的用户和供应商关联主键集合
     * @return 结果
     */
    public int deleteFlowUserSupplyByUserIds(String[] supplycode);

    /**
     * 删除用户和供应商关联信息
     * 
     * @param userId 用户和供应商关联主键
     * @return 结果
     */
    public int deleteFlowUserSupplyByUserId(Long userId);
}
